#ifndef TRACE_LOG_H
#define TRACE_LOG_H

#include <rtthread.h>

#define MSG_BUF_SIZE 2048
#define TRACE_LOG_DELAY 10000

struct log_msg {
    char file[32]; 
    int line;
    char func[128];
    int var;
    char svar[64];    
}; 

int trace_log_dump(void);
void do_trace(const char *sfile, const int line, const char *sfunc);
void do_trace2(const char *sfile, const int line, const char *sfunc, const int var, const char *svar);

#endif
